#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main()
{
  //int fd=open("test.txt",O_CREAT|O_WRONLY|O_TRUNC,0666);
  //dup2(fd,1);
  //printf("小潘真美真香\n");
   
   fprintf(stderr,"hello error\n");
   fprintf(stderr,"hello error\n");
   fprintf(stderr,"hello error\n");
   fprintf(stderr,"hello error\n");
   fprintf(stderr,"hello error\n");
   fprintf(stderr,"hello error\n");

   
   fprintf(stdout,"hello std\n");
   fprintf(stdout,"hello std\n");
   fprintf(stdout,"hello std\n");
   fprintf(stdout,"hello std\n");
   fprintf(stdout,"hello std\n");


   return 0;
}
